package com.pm.main.infrastructure.product;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.mapping.Document;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by cjwfuture on 2021/6/6
 */
@Getter
@Setter
@Document("product")
public class ProductPO {

    private String name;
    private List<String> images;
    private BigDecimal costPrice;

    @Getter
    @Setter
    public static class ProductImage {
        private String uniqueKey;
        private String url;
    }
}
